package com.ywjh.inter.run;

import java.sql.Connection;
import java.sql.SQLException;

import com.ywjh.inter.conn.DBConnection;
import com.ywjh.inter.work.DocWork;
import com.ywjh.inter.work.Version;

public class Crontab {
	public static void main(String[] args) {
		Connection conn=null;
		try {
			conn=DBConnection.getDBConnection();
			//发布字典表
			new DocWork().publish(conn);
			new Version().publish(conn);
		} catch (ClassNotFoundException | SQLException e) {
			e.printStackTrace();
		}finally {
			DBConnection.close(conn);
		}
	}
}
